﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    @RenderPage(Url.Content("~/Views/StealerHeader.cshtml"))
</head>
<body>
    <div style="height:500px;"> 
        <table>
            <tr>
                <td>用户名</td>
                <td>
                    <input id="userName" name="userName" type="text" />
                </td>
                <td>性别</td>
                <td>
                    <select name="userSex">
                        <option value="0">男</option>
                        <option value="1">女</option>
                    </select>                   
                </td>
                <td>出生日期></td>
                <td><input name="userBirth" type="text" /></td>
                <td><input type="button"  value="查询" onclick="search()"/>
                <input type="button" value="导出EXECEL" onclick="abc()" />
                </td>
            </tr>
        </table>
        
            @*<script>
            function search()
            {
                var userName = escape($("#userName").val());


                $("#iframe1").attr("src", "http://127.0.0.1:6001/demo/reportJsp/showReport.jsp?raq=/userinfo.raq" + "&userName=" + userName);

            }

            function abc()
            {
              
                document.getElementById('iframe1').contentWindow.userinfo_saveAsExcel();//跨域要设置域名一致
                //document.getElementById('iframe1').contentWindow.a();
                //report1_saveAsExcel();
            }
        </script>*@
    @*<iframe id="iframe1" src="http://127.0.0.1:6001/demo/reportJsp/showReport.jsp?raq=/userinfo.raq" style="height:100%;width:100%;border:none;"></iframe>*@
        <script src="~/Content/Js/jquery-1.11.1.min.js"></script>    


        <script src="~/Content/Js/runqianReport.js"></script>
        <script language=javascript>
	     var report = new runqianReport( "80%", "400px" );
		  //report.setBorder( "border:1px solid blue" ); //设置控件为兰色细边框
	     report.setServerURL("http://127.0.0.1:6001/demo");
	     report.init();
	     report.setFile("importExcel.raq");
	     report.setSaveAsName("学生成绩表");
	     report.display();
        </script>
    </div>
</body>
</html>
